﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Template/List.master" AutoEventWireup="true"
    CodeBehind="ThreeList.aspx.cs" Inherits="MaluJg.web.Three.ThreeList" %>

<%@ Register Src="~/Control/ListHeader.ascx" TagName="ListHeader" TagPrefix="wsc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script type="text/javascript" src="../DatePicker/WdatePicker.js"></script>

    <script>
        function searchClick() {
            if (window.event.keyCode == 13) {
                document.getElementById("<%=btnSearch.ClientID %>").click();
            }
        }

        function clearText(control, text) {
            if (control.value == text)
                control.innerText = "";
        }
        function insertText(control, text) {
            if (control.value == "")
                control.innerText = text;
        }
        function openCreate() {

            window.open("Three1Detail.aspx", "newwindow");
        }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    事项列表
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ListToolBarPlaceHolder" runat="server">
    <table cellspacing="2" cellpadding="0" border="0" id="tblOperator" runat="server"
        width="100%">
        <tr>
            <td class="ToolMenu" width="60" align="left" runat="server" id="trCreate">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)"
                    onclick="openCreate();">
                    <span>
                        <img src="../Images/Icon/Object/event-add.gif" alt="" /></span><span>新建事项</span>
                </div>
            </td>
            <td class="Fg" width="10" align="left" runat="server" id="trCreatefg">
                <img src="../Images/FgLine.gif" alt="" />
            </td>
            <td>
                <table cellspacing="0" cellpadding="0" border="0" class="TableSearch" width="100%">
                    <tr>
                        <td width="100%">
                            <asp:TextBox ID="tbSearch" runat="server" CssClass="TextBox" Width="100%"></asp:TextBox>
                        </td>
                        <td width="10">
                            <asp:LinkButton ID="btnSearch" runat="server" OnClick="btnSearch_Click"><img alt="<%=SearchDefaultText %>" src="../Images/Icon/Icon-Search.png" align="absmiddle" style="cursor: pointer;" /></asp:LinkButton>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="AdvancedSearchPlaceHolder" runat="server">
    <table cellspacing="4" cellpadding="0" border="0" width="100%">
        <tr>
            <td width="83">
                &nbsp;&nbsp;创建时间：
            </td>
            <td>
                <asp:TextBox ID="tbStart" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" runat="server"
                    CssClass="WDate" Width="48%"></asp:TextBox>
                -
                <asp:TextBox ID="tbEnd" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" runat="server"
                    CssClass="WDate" Width="49%"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="right">
                <asp:Button ID="btnAdvancedSearch" runat="server" CssClass="Button01" Text="查询" OnClick="btnAdvancedSearch_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ListHeaderPlaceHolder" runat="server">
    <table cellspacing="0" cellpadding="0" border="0" class="PageGridHeader" width="100%">
        <wsc:ListHeader ID="lhPK" runat="server" Type="CheckBox" Align="center" Width="30" />
        <wsc:ListHeader ID="lhDept" runat="server" Title="&nbsp;上报单位" Align="center" />
        <wsc:ListHeader ID="lhTitle" runat="server" Title="&nbsp;上报时间" Align="center" Width="120" />
        <wsc:ListHeader ID="lhCreateTime" runat="server" Title="&nbsp;创建时间" Align="center"
            Width="120" />
        <wsc:ListHeader ID="lhStatus" runat="server" Title="&nbsp;状态" Align="center" Width="60" />
    </table>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="ListContentPlaceHolder" runat="server">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="MainInfolist">
        <asp:Repeater ID="rptProposal" runat="server">
            <ItemTemplate>
                <tr id="TableRow_<%# Container.ID%>" style="cursor: hand" class="Normal" oldclass="Normal"
                    onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)" onclick="ClickChangeClass(this);OpenDetail('Three1Detail.aspx?eventid=<%# DataBinder.Eval(Container.DataItem, "ID")%>');">
                    <td width="30" align="left">
                        <input type="checkbox" id="cb<%# DataBinder.Eval(Container.DataItem, "ID")%>" />
                    </td>
                    <td>
                        &nbsp;<%# DataBinder.Eval(Container.DataItem, "DeptDspName")%>
                    </td>
                    <td width="120">
                        &nbsp;<%# DataBinder.Eval(Container.DataItem, "ReportTime")%>
                    </td>
                    
                    <td width="120">
                        &nbsp;<%# ((DateTime)DataBinder.Eval(Container.DataItem, "CreateTime")).ToString("yy-MM-dd") %>
                    </td>
                    <td width="60">
                        <%# DataBinder.Eval(Container.DataItem, "StatusName")%>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
</asp:Content>
